package com.zxj.transfer.orm.dao;

import com.zxj.transfer.orm.po.TConfirmLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TConfirmLogMapper {

    @Select("SELECT * FROM t_confirm_log WHERE tx_no = #{tid}")
    TConfirmLog selectByTid(@Param("tid") String tid);

    @Insert("INSERT INTO t_confirm_log (tx_no) VALUES (#{tid})")
    int insert(@Param("tid") String tid);
}